package Function;

import java.text.DecimalFormat;

class Employee extends Person {
	private Company company;
	private double salary;

	public boolean equals(Object obj) {
		DecimalFormat df = new DecimalFormat("#.##");
		Employee other = (Employee) obj;
		if (!super.equals(obj))
			return false;
		if (company == null) {
			if (other.company != null)
				return false;
		} else if (!company.equals(other.company))
			return false;
		if (!df.format(salary).equals(df.format(other.salary)))
			return false;
		return true;
	}

}

class Person {

}

class Company {

}

public class Main {
	public static void main(String[] args) {
		DecimalFormat df = new DecimalFormat("#.##");

	}
}
